//
//  XOWMUserTipView.m
//  XOWMSDK
//
//  Created by skyline on 2018/3/7.
//  Copyright © 2018年 skyline. All rights reserved.
//

#import "XOWMUserTipView.h"

@interface XOWMUserTipView()
@property (nonatomic, strong) XOWMLabel *label;
@end
@implementation XOWMUserTipView
- (instancetype)initWithText:(NSString *)text
{
    self = [super init];
    if (self)
    {
        self.backgroundColor = helperManager().getPara().color;
        self.label.text = text;
    }
    return self;
}

- (XOWMLabel *)label
{
    if (!_label)
    {
        _label = [[XOWMLabel alloc] init];
        _label.textColor = [UIColor whiteColor];
        _label.font = [UIFont systemFontOfSize:15];
        [self addSubview:_label];
        _label.c_left.equal(self).with.coffset(5);
        _label.c_centerY.equal(self);
    }
    return _label;
}
@end
